Optimal. Leaf size=248 \[ \frac {(b c-a d)^2 (e x)^{5/2}}{3 c d^2 e \left (c+d x^2\right )^{3/2}}+\frac {\left (15 b^2 c^2-10 a b c d-a^2 d^2\right ) e \sqrt {e x}}{6 c d^3 \sqrt {c+d x^2}}+\frac {2 b^2 (e x)^{5/2}}{3 d^2 e \sqrt {c+d x^2}}-\frac {\left (15 b^2 c^2-10 a b c d-a^2 d^2\right ) e^{3/2} \left (\sqrt {c}+\sqrt {d} x\right ) \sqrt {\frac {c+d x^2}{\left (\sqrt {c}+\sqrt {d} x\right )^2}} F\left (2 \tan ^{-1}\left (\frac {\sqrt [4]{d} \sqrt {e x}}{\sqrt [4]{c} \sqrt {e}}\right )|\frac {1}{2}\right )}{12 c^{5/4} d^{13/4} \sqrt {c+d x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.13, antiderivative size = 248, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 5, integrand size = 28, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.179, Rules used = {474, 470, 294,
335, 226} \begin {gather*} -\frac {e^{3/2} \left (\sqrt {c}+\sqrt {d} x\right ) \sqrt {\frac {c+d x^2}{\left (\sqrt {c}+\sqrt {d} x\right )^2}} \left (-a^2 d^2-10 a b c d+15 b^2 c^2\right ) F\left (2 \text {ArcTan}\left (\frac {\sqrt [4]{d} \sqrt {e x}}{\sqrt [4]{c} \sqrt {e}}\right )|\frac {1}{2}\right )}{12 c^{5/4} d^{13/4} \sqrt {c+d x^2}}+\frac {e \sqrt {e x} \left (-a^2 d^2-10 a b c d+15 b^2 c^2\right )}{6 c d^3 \sqrt {c+d x^2}}+\frac {(e x)^{5/2} (b c-a d)^2}{3 c d^2 e \left (c+d x^2\right )^{3/2}}+\frac {2 b^2 (e x)^{5/2}}{3 d^2 e \sqrt {c+d x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 226
Rule 294
Rule 335
Rule 470
Rule 474
Rubi steps
\begin {align*} \int \frac {(e x)^{3/2} \left (a+b x^2\right )^2}{\left (c+d x^2\right )^{5/2}} \, dx &=\frac {(b c-a d)^2 (e x)^{5/2}}{3 c d^2 e \left (c+d x^2\right )^{3/2}}-\frac {\int \frac {(e x)^{3/2} \left (\frac {1}{2} \left (-6 a^2 d^2+5 (b c-a d)^2\right )-3 b^2 c d x^2\right )}{\left (c+d x^2\right )^{3/2}} \, dx}{3 c d^2}\\ &=\frac {(b c-a d)^2 (e x)^{5/2}}{3 c d^2 e \left (c+d x^2\right )^{3/2}}+\frac {2 b^2 (e x)^{5/2}}{3 d^2 e \sqrt {c+d x^2}}-\frac {\left (15 b^2 c^2-10 a b c d-a^2 d^2\right ) \int \frac {(e x)^{3/2}}{\left (c+d x^2\right )^{3/2}} \, dx}{6 c d^2}\\ &=\frac {(b c-a d)^2 (e x)^{5/2}}{3 c d^2 e \left (c+d x^2\right )^{3/2}}+\frac {\left (15 b^2 c^2-10 a b c d-a^2 d^2\right ) e \sqrt {e x}}{6 c d^3 \sqrt {c+d x^2}}+\frac {2 b^2 (e x)^{5/2}}{3 d^2 e \sqrt {c+d x^2}}-\frac {\left (\left (15 b^2 c^2-10 a b c d-a^2 d^2\right ) e^2\right ) \int \frac {1}{\sqrt {e x} \sqrt {c+d x^2}} \, dx}{12 c d^3}\\ &=\frac {(b c-a d)^2 (e x)^{5/2}}{3 c d^2 e \left (c+d x^2\right )^{3/2}}+\frac {\left (15 b^2 c^2-10 a b c d-a^2 d^2\right ) e \sqrt {e x}}{6 c d^3 \sqrt {c+d x^2}}+\frac {2 b^2 (e x)^{5/2}}{3 d^2 e \sqrt {c+d x^2}}-\frac {\left (\left (15 b^2 c^2-10 a b c d-a^2 d^2\right ) e\right ) \text {Subst}\left (\int \frac {1}{\sqrt {c+\frac {d x^4}{e^2}}} \, dx,x,\sqrt {e x}\right )}{6 c d^3}\\ &=\frac {(b c-a d)^2 (e x)^{5/2}}{3 c d^2 e \left (c+d x^2\right )^{3/2}}+\frac {\left (15 b^2 c^2-10 a b c d-a^2 d^2\right ) e \sqrt {e x}}{6 c d^3 \sqrt {c+d x^2}}+\frac {2 b^2 (e x)^{5/2}}{3 d^2 e \sqrt {c+d x^2}}-\frac {\left (15 b^2 c^2-10 a b c d-a^2 d^2\right ) e^{3/2} \left (\sqrt {c}+\sqrt {d} x\right ) \sqrt {\frac {c+d x^2}{\left (\sqrt {c}+\sqrt {d} x\right )^2}} F\left (2 \tan ^{-1}\left (\frac {\sqrt [4]{d} \sqrt {e x}}{\sqrt [4]{c} \sqrt {e}}\right )|\frac {1}{2}\right )}{12 c^{5/4} d^{13/4} \sqrt {c+d x^2}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 10.20, size = 204, normalized size = 0.82 \begin {gather*} \frac {(e x)^{3/2} \left (\frac {\sqrt {x} \left (a^2 d^2 \left (-c+d x^2\right )-2 a b c d \left (5 c+7 d x^2\right )+b^2 c \left (15 c^2+21 c d x^2+4 d^2 x^4\right )\right )}{c d^3 \left (c+d x^2\right )}+\frac {i \left (-15 b^2 c^2+10 a b c d+a^2 d^2\right ) \sqrt {1+\frac {c}{d x^2}} x F\left (\left .i \sinh ^{-1}\left (\frac {\sqrt {\frac {i \sqrt {c}}{\sqrt {d}}}}{\sqrt {x}}\right )\right |-1\right )}{c \sqrt {\frac {i \sqrt {c}}{\sqrt {d}}} d^3}\right )}{6 x^{3/2} \sqrt {c+d x^2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(673\) vs.
\(2(249)=498\).
time = 0.17, size = 674, normalized size = 2.72
method | result | size |
elliptic | \(\frac {\sqrt {e x \left (d \,x^{2}+c \right )}\, \sqrt {e x}\, \left (-\frac {e \left (a^{2} d^{2}-2 a b c d +b^{2} c^{2}\right ) \sqrt {d e \,x^{3}+c e x}}{3 d^{5} \left (x^{2}+\frac {c}{d}\right )^{2}}+\frac {e^{2} x \left (a^{2} d^{2}-14 a b c d +13 b^{2} c^{2}\right )}{6 d^{3} c \sqrt {\left (x^{2}+\frac {c}{d}\right ) d e x}}+\frac {2 b^{2} e \sqrt {d e \,x^{3}+c e x}}{3 d^{3}}+\frac {\left (\frac {2 b \left (a d -b c \right ) e^{2}}{d^{3}}+\frac {e^{2} \left (a^{2} d^{2}-14 a b c d +13 b^{2} c^{2}\right )}{12 d^{3} c}-\frac {b^{2} e^{2} c}{3 d^{3}}\right ) \sqrt {-c d}\, \sqrt {\frac {\left (x +\frac {\sqrt {-c d}}{d}\right ) d}{\sqrt {-c d}}}\, \sqrt {-\frac {2 \left (x -\frac {\sqrt {-c d}}{d}\right ) d}{\sqrt {-c d}}}\, \sqrt {-\frac {x d}{\sqrt {-c d}}}\, \EllipticF \left (\sqrt {\frac {\left (x +\frac {\sqrt {-c d}}{d}\right ) d}{\sqrt {-c d}}}, \frac {\sqrt {2}}{2}\right )}{d \sqrt {d e \,x^{3}+c e x}}\right )}{e x \sqrt {d \,x^{2}+c}}\) | \(329\) |
risch | \(\frac {2 b^{2} x \sqrt {d \,x^{2}+c}\, e^{2}}{3 d^{3} \sqrt {e x}}+\frac {\left (\frac {6 a b \sqrt {-c d}\, \sqrt {\frac {\left (x +\frac {\sqrt {-c d}}{d}\right ) d}{\sqrt {-c d}}}\, \sqrt {-\frac {2 \left (x -\frac {\sqrt {-c d}}{d}\right ) d}{\sqrt {-c d}}}\, \sqrt {-\frac {x d}{\sqrt {-c d}}}\, \EllipticF \left (\sqrt {\frac {\left (x +\frac {\sqrt {-c d}}{d}\right ) d}{\sqrt {-c d}}}, \frac {\sqrt {2}}{2}\right )}{\sqrt {d e \,x^{3}+c e x}}-\frac {7 b^{2} c \sqrt {-c d}\, \sqrt {\frac {\left (x +\frac {\sqrt {-c d}}{d}\right ) d}{\sqrt {-c d}}}\, \sqrt {-\frac {2 \left (x -\frac {\sqrt {-c d}}{d}\right ) d}{\sqrt {-c d}}}\, \sqrt {-\frac {x d}{\sqrt {-c d}}}\, \EllipticF \left (\sqrt {\frac {\left (x +\frac {\sqrt {-c d}}{d}\right ) d}{\sqrt {-c d}}}, \frac {\sqrt {2}}{2}\right )}{d \sqrt {d e \,x^{3}+c e x}}+\left (3 a^{2} d^{2}-12 a b c d +9 b^{2} c^{2}\right ) \left (\frac {x}{c \sqrt {\left (x^{2}+\frac {c}{d}\right ) d e x}}+\frac {\sqrt {-c d}\, \sqrt {\frac {\left (x +\frac {\sqrt {-c d}}{d}\right ) d}{\sqrt {-c d}}}\, \sqrt {-\frac {2 \left (x -\frac {\sqrt {-c d}}{d}\right ) d}{\sqrt {-c d}}}\, \sqrt {-\frac {x d}{\sqrt {-c d}}}\, \EllipticF \left (\sqrt {\frac {\left (x +\frac {\sqrt {-c d}}{d}\right ) d}{\sqrt {-c d}}}, \frac {\sqrt {2}}{2}\right )}{2 c d \sqrt {d e \,x^{3}+c e x}}\right )-3 c \left (a^{2} d^{2}-2 a b c d +b^{2} c^{2}\right ) \left (\frac {\sqrt {d e \,x^{3}+c e x}}{3 c e \,d^{2} \left (x^{2}+\frac {c}{d}\right )^{2}}+\frac {5 x}{6 c^{2} \sqrt {\left (x^{2}+\frac {c}{d}\right ) d e x}}+\frac {5 \sqrt {-c d}\, \sqrt {\frac {\left (x +\frac {\sqrt {-c d}}{d}\right ) d}{\sqrt {-c d}}}\, \sqrt {-\frac {2 \left (x -\frac {\sqrt {-c d}}{d}\right ) d}{\sqrt {-c d}}}\, \sqrt {-\frac {x d}{\sqrt {-c d}}}\, \EllipticF \left (\sqrt {\frac {\left (x +\frac {\sqrt {-c d}}{d}\right ) d}{\sqrt {-c d}}}, \frac {\sqrt {2}}{2}\right )}{12 c^{2} d \sqrt {d e \,x^{3}+c e x}}\right )\right ) e^{2} \sqrt {e x \left (d \,x^{2}+c \right )}}{3 d^{3} \sqrt {e x}\, \sqrt {d \,x^{2}+c}}\) | \(638\) |
default | \(\frac {\left (\sqrt {-c d}\, \sqrt {\frac {d x +\sqrt {-c d}}{\sqrt {-c d}}}\, \sqrt {2}\, \sqrt {\frac {-d x +\sqrt {-c d}}{\sqrt {-c d}}}\, \sqrt {-\frac {x d}{\sqrt {-c d}}}\, \EllipticF \left (\sqrt {\frac {d x +\sqrt {-c d}}{\sqrt {-c d}}}, \frac {\sqrt {2}}{2}\right ) a^{2} d^{3} x^{2}+10 \sqrt {-c d}\, \sqrt {\frac {d x +\sqrt {-c d}}{\sqrt {-c d}}}\, \sqrt {2}\, \sqrt {\frac {-d x +\sqrt {-c d}}{\sqrt {-c d}}}\, \sqrt {-\frac {x d}{\sqrt {-c d}}}\, \EllipticF \left (\sqrt {\frac {d x +\sqrt {-c d}}{\sqrt {-c d}}}, \frac {\sqrt {2}}{2}\right ) a b c \,d^{2} x^{2}-15 \sqrt {-c d}\, \sqrt {\frac {d x +\sqrt {-c d}}{\sqrt {-c d}}}\, \sqrt {2}\, \sqrt {\frac {-d x +\sqrt {-c d}}{\sqrt {-c d}}}\, \sqrt {-\frac {x d}{\sqrt {-c d}}}\, \EllipticF \left (\sqrt {\frac {d x +\sqrt {-c d}}{\sqrt {-c d}}}, \frac {\sqrt {2}}{2}\right ) b^{2} c^{2} d \,x^{2}+\sqrt {\frac {d x +\sqrt {-c d}}{\sqrt {-c d}}}\, \sqrt {2}\, \sqrt {\frac {-d x +\sqrt {-c d}}{\sqrt {-c d}}}\, \sqrt {-\frac {x d}{\sqrt {-c d}}}\, \EllipticF \left (\sqrt {\frac {d x +\sqrt {-c d}}{\sqrt {-c d}}}, \frac {\sqrt {2}}{2}\right ) \sqrt {-c d}\, a^{2} c \,d^{2}+10 \sqrt {\frac {d x +\sqrt {-c d}}{\sqrt {-c d}}}\, \sqrt {2}\, \sqrt {\frac {-d x +\sqrt {-c d}}{\sqrt {-c d}}}\, \sqrt {-\frac {x d}{\sqrt {-c d}}}\, \EllipticF \left (\sqrt {\frac {d x +\sqrt {-c d}}{\sqrt {-c d}}}, \frac {\sqrt {2}}{2}\right ) \sqrt {-c d}\, a b \,c^{2} d -15 \sqrt {\frac {d x +\sqrt {-c d}}{\sqrt {-c d}}}\, \sqrt {2}\, \sqrt {\frac {-d x +\sqrt {-c d}}{\sqrt {-c d}}}\, \sqrt {-\frac {x d}{\sqrt {-c d}}}\, \EllipticF \left (\sqrt {\frac {d x +\sqrt {-c d}}{\sqrt {-c d}}}, \frac {\sqrt {2}}{2}\right ) \sqrt {-c d}\, b^{2} c^{3}+8 b^{2} c \,d^{3} x^{5}+2 a^{2} d^{4} x^{3}-28 a b c \,d^{3} x^{3}+42 b^{2} c^{2} d^{2} x^{3}-2 a^{2} c \,d^{3} x -20 a b \,c^{2} d^{2} x +30 b^{2} c^{3} d x \right ) e \sqrt {e x}}{12 x c \,d^{4} \left (d \,x^{2}+c \right )^{\frac {3}{2}}}\) | \(674\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 0.34, size = 229, normalized size = 0.92 \begin {gather*} -\frac {{\left (15 \, b^{2} c^{4} - 10 \, a b c^{3} d - a^{2} c^{2} d^{2} + {\left (15 \, b^{2} c^{2} d^{2} - 10 \, a b c d^{3} - a^{2} d^{4}\right )} x^{4} + 2 \, {\left (15 \, b^{2} c^{3} d - 10 \, a b c^{2} d^{2} - a^{2} c d^{3}\right )} x^{2}\right )} \sqrt {d} e^{\frac {3}{2}} {\rm weierstrassPInverse}\left (-\frac {4 \, c}{d}, 0, x\right ) - {\left (4 \, b^{2} c d^{3} x^{4} + 15 \, b^{2} c^{3} d - 10 \, a b c^{2} d^{2} - a^{2} c d^{3} + {\left (21 \, b^{2} c^{2} d^{2} - 14 \, a b c d^{3} + a^{2} d^{4}\right )} x^{2}\right )} \sqrt {d x^{2} + c} \sqrt {x} e^{\frac {3}{2}}}{6 \, {\left (c d^{6} x^{4} + 2 \, c^{2} d^{5} x^{2} + c^{3} d^{4}\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (e x\right )^{\frac {3}{2}} \left (a + b x^{2}\right )^{2}}{\left (c + d x^{2}\right )^{\frac {5}{2}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (e\,x\right )}^{3/2}\,{\left (b\,x^2+a\right )}^2}{{\left (d\,x^2+c\right )}^{5/2}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________